import { Pipe } from '@angular/core';

@Pipe({
  name: 'sexFormatPipe',
})
export class SexPipe {
  transform(value: number, lang = 'zh-cn') {
    if (lang === 'zh-cn') {
      return value ? '男' : '女';
    } else {
      return value ? 'Male' : 'Female';
    }
  }
}
